import { Inject, Controller ,Post ,Body} from '@midwayjs/decorator';
import { Context } from '@midwayjs/koa'
import { PayService } from 'src/service/onlypay.service';

/**
 * 描述
 */
@Controller('/notify')
export class notifyController {
 @Inject()
  ctx: Context;
 @Inject()
 PayService: PayService;
@Post('/pay')
async notifyPay( @Body() body) {

        // return { 
        //      code:20000,
        //      mes:"success"
        // }
        return  await this.PayService.notify(body)


  }
}